package com.xjlsoft.weather.enums;

/**
 * 结果码枚举
 *
 */
public enum UserStatusEnum {

	Normal("1", "正常"),
    Freezing("0", "冻结");




    private final String value;

    private final String message;

    UserStatusEnum(String value, String message) {
        this.value = value;
        this.message = message;
    }

    public String getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

    public static String valueof(String value) {
        for (UserStatusEnum e : UserStatusEnum.values()) {
            if (e.getValue().equals(value)) {
                return e.getMessage();
            }
        }
        return null;
    }
    }
